import request from '@/utils/request'
const apix = 'dev-api'
// api地址
const api = {
	like_list: apix + '/integral/like/list',
	like_export: apix + '/integral/like/export',
	integral_like: apix + '/integral/like',
	// integral_like: apix + '/integral/like',
	integral_likeId: apix + '/integral/like/',
}

//查询约车信息列表
export function likeList(obj) {
	return request.get(api.like_list, {
		...obj
	})
}
//导出约车信息列表
export function likeExport(obj) {
	return request.post(api.like_export, {
		...obj
	})
}
//获取约车信息详细信息
export function likeId(id) {
	return request.get(api.integral_likeId + id)
}
//新增约车信息
export function addlike(obj) {
	return request.post(api.integral_like, {
		...obj
	})
}
//修改约车信息
export function putlike(obj) {
	return request.put(api.integral_like, {
		...obj
	})
}
//删除约车信息
export function dellike(id) {
	return request.delete(api.integral_likeId + id)
}